package com.yc.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.exam.entity.Exam;
import com.yc.exam.vo.ExamVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mapper 接口
 *
 * @author 王妍
 * @since 2022-03-23
 */
@Mapper
public interface ExamMapper extends BaseMapper<Exam> {

  /** 分页查询相关信息 */
  Page<ExamVo> selectPageVo(Page<ExamVo> examPage, ExamVo exam);

  /** 通过学生姓名查询分页信息 */
  Page<ExamVo> selectPageVoByStudentName(
      Page<ExamVo> examPage, ExamVo exam, String studentUserName);

  /** 通过老师名查分页信息 */
  Page<ExamVo> selectPageVoByTeacherName(
      Page<ExamVo> examPage, ExamVo exam, String teacherUserName);
}
